package com.lanou.controller;

import com.lanou.service.AboutService;
import com.lanou.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName AboutController
 * @Description TODO
 * @Author lizhenjiang
 * @Date 2025年08月14日 10:10
 * @Version 1.0
 */
@RestController
@RequestMapping("about")
public class AboutController {
    @Autowired
    private AboutService aboutService;

    @GetMapping("{id}")
    public R selectAboutById(@PathVariable Integer id) {
        return R.ok(aboutService.getAboutById(id));
    }
}
